﻿namespace Sidvall.Web.IO.Data
{
    public class OpenFileContext
    {
        public string Path { get; set; }
        public object StrategyContext { get; set; }
        public bool Cancel { get; set; }

        public static OpenFileContext Create(string path)
        {
            return new OpenFileContext()
            {
                Path = path,
            };
        }
        public static OpenFileContext Create(Sidvall.IO.Data.ItemContext context)
        {
            return new OpenFileContext()
            {
                Path = context.Path,
            };
        }
    }
}
